package com.gljx.web.service;

import com.gljx.web.Entity.*;

import javax.servlet.http.HttpServletRequest;
import java.util.List;
import java.util.Map;

/**
 * Created by Administrator on 2017/11/20 0020.
 */
public interface CarmainTainService {

    Map<String, Object> selectPage(int pindex, String s, int psize);

    Map<String, Object> selectPageCount(String psql);

    void addCarmaintain(String state, Carmaintain carmaintain, String[] cfmaintainitemid,String[] cfmaintainitemName,
                        String[] cfrepairshopid, String[] cfmanhours, String[] cfbasemanhours,
                        String[] cfgsqty, String[] cfprice, String[] cfqty, String[] cfamount,
                        String[] cfallamount, String[] cfremark, String auditstate);

    Carmaintain selectCarmainTainByFid(String fid);

    void deleteByCarmainTainKey(String[] deleteId,String[] fnumber);

	List<Carmaintainentry> selectCarMainTain(Map<String, String> map3);

	Carmaintainentry selectCarMainTainCount(Map<String, String> map3);

    /**
     * 审核操作
     *
     * @Author lcx
     * @Date 2018/2/2 0002 下午 3:26
     * carmaintain 数据对象 state审核还是反审核标记 agreed审核的同意标记
     */
    String examine(Carmaintain carmaintain, String state, String agreed, String auditcomment);

    String selectAuditPerson(Object fnumber);

    boolean selectAuditPerson2(Object fnumber);

    //提交流程
    void submit(Carmaintain carmaintain, String auditstate);

    List<Carmaintain> selectCarmaintainXls(String jlName, String cfcoachno, String beginTime, String endTime,
                                           String fcompanyid,String departmentid, String cfmaintetype, String repairshopid);

    /**
     * @Author lcx
     * @Date 2018/6/19 0019 上午 9:52
     * 财务需求的导出
     */
    List<Carmaintain> selectCarmaintainXls(String jlName, String cfcoachno, String beginTime, String endTime, String fcompanyid);
    /*

    void deleteByCoachsubKey(String[] deleteId);*/

    /**
     * 事故维修导入
     * @param request
     * @param carmaintains
     * @param carmaintainImports
     * @return
     */
    int importCarmainTainSG(HttpServletRequest request, List<Carmaintain> carmaintains, List<CarmaintainImport> carmaintainImports,User user,String[]carmainDateAll,String[]carmainCarnameAll);
}
